<template>
    <div class="monitor_container">
      <el-container>
        <!--侧边栏-->
        <el-aside class="left-view" width="80px">
          <el-menu class="menus" :collapse="false" menu-trigger="click">
            <el-submenu index="1">
              <template slot="title">
                <i class="el-icon-location"></i>
                <span slot="title">导航五</span>
              </template>
              <el-menu-item index="1-1">
                <template>
                  <i class="el-icon-menu"></i>
                </template>
                <span slot="title">菜单像</span>
              </el-menu-item>
            </el-submenu>
            <el-menu-item index="2">
              <i class="el-icon-menu"></i>
              <span slot="title">导航二</span>
            </el-menu-item>
            <el-menu-item index="3" disabled>
              <i class="el-icon-document"></i>
              <span slot="title">导航三</span>
            </el-menu-item>
            <el-menu-item index="4">
              <i class="el-icon-setting"></i>
              <span slot="title">导航四</span>
            </el-menu-item>
          </el-menu>
        </el-aside>
        <el-main>Main</el-main>
      </el-container>
    </div>
</template>

<script>
export default {
  name: 'Monitor'
}
</script>

<style lang="less" scoped>
.left-view{
  .menus{
    display: flex;
    flex-direction: column;
    .el-menu-item{
      margin-top: 30px;
    }
  }
}
::v-deep .el-submenu__title{
  background-color: transparent !important;
  line-height: 25px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  i{
    margin: 0;
  }
  .el-menu-item{
    margin-top: 30px;
  }
}
</style>
